


//
//  SHUIImageView.m
//  YHSJ
//
//  Created by CYF on 16/11/10.
//  Copyright © 2016年 SH. All rights reserved.
//

#import "SHUIImageView.h"

@implementation SHUIImageView

#pragma mark -- 设置imageView 圆角
- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        
    }
    return self;
}
- (void)setCornerRadius:(CGFloat)cornerRadius{
    
    self.layer.cornerRadius = __I6Width(cornerRadius);
    self.layer.masksToBounds = YES;
}
#pragma mark -- 设置imageView 边框宽度 边框颜色
- (void)setBorderWidth:(CGFloat)borderWidth borderColor:(UIColor *)borderColor{
    
    self.layer.borderWidth = borderWidth;
    self.layer.borderColor = borderColor.CGColor;
}


@end
